﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TimKiem.aspx.cs" Inherits="DM.Web.TimKiem" Title="Công ty cổ phần Đường Man - Duong Malt JSC" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3 style="color:#145066; font-size: 14px;">Kết quả tìm kiếm</h3>
    <hr style="color:#f1f1f1;" />
    <br />
    <asp:GridView ID="gvSearch" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Width="100%">
        <RowStyle BackColor="White" ForeColor="#003399" />
        <Columns>
            <asp:TemplateField>
                <%--Ảnh đại diện tin tức  --%>
                <ItemTemplate>
                    <img style="height:80px;width:80px" src='<%# GetImage(Eval("Ma").ToString())%>' alt="Ảnh đại diện" />
                </ItemTemplate>
            </asp:TemplateField>
                <%-- Thông tin cụ thể tin tức--%>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='<%"TrangTinTuc.aspx?id="+Eval("Ma")%>'><b><%#Eval("TieuDe").ToString() %></b></a><br />
                    <p><%#Eval("Mota").ToString()%></p>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
    </asp:GridView>
    
</asp:Content>
